package com.yonyougov.devops.cruxcisupport.enums;

import lombok.Getter;

/**
 * 提测类型
 */
@Getter
public enum ServerStatusEnum implements BaseEnum {
    OFFLINE("下线", 0),
    ONLINE("上线", 1),
    UNAUTH("无法认证", 2),
    ;


    private String value;
    private int code;

    ServerStatusEnum(String value, int code) {
        this.value = value;
        this.code = code;
    }

    @Override
    public boolean equals(Integer code) {
        return code.equals(this.code);
    }
}
